package com.big.model.vo.cart;


import com.baomidou.mybatisplus.annotation.TableField;
import com.big.model.model.merchandise.MerchandiseOffers;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@ApiModel("Redis购物车实体")
@Data
public class RedisCartVo implements Serializable {

    //商品编号
    private String mid;

    //用户编号
    private String uid;

    //商品名称
    private String name;

    //商品单价
    private double price;

    //商品数量
    private Integer num;

    //商品头图
    private String image;

   //优惠方式
    private  List<MerchandiseOffers> offers;

    //小计
    private  double total;

    //套餐组
    private  String spackage;

    //选框状态
    private boolean check;


    @ApiModelProperty(value = "其他参数")
    @TableField(exist = false)
    private Map<String,Object> param = new HashMap<>();

}
